export default {
  functional:true,
  render(h, { parent, data }) {
    data.routerView = true
    let route = parent.$route
    let depth = 0
    
    while (parent) {
      if (parent.$vnode&&parent.$vnode.data.routerView) {
        depth++
      }
      parent = parent.$parent
    }
    
    let record = route.mached[depth]
    console.log(parent, depth, route, record,63000);
    if (!record) {
      return h()
    }

    return h(record.component, data)
  }
}